package com.hanhan.hanshow.controller;

import com.hanhan.hanshow.entity.User;
import org.springframework.web.bind.annotation.*;

import java.util.UUID;

@RestController
@RequestMapping("/test")
public class HanController {

    @PostMapping("/newUser")
    public User newUser(@RequestBody User user){
        user.setId(UUID.randomUUID().toString());
        return user;
    }
}
